        :root {
            --primary-color: #005f9e;
            --secondary-color: #0077c2;
            --text-color: #333333;
            --background-color: #f8f9fa;
            --shadow-color: rgba(0, 0, 0, 0.1);
        }

        body, html {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: 'Roboto', Arial, sans-serif;
            color: var(--text-color);
            background-color: var(--background-color);
            font-size: 16px;
            line-height: 1.5;
        }

        #map {
            height: 100vh;
            width: 100%;
        }

        #distanceBox {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 30px;
            box-shadow: 0 4px 10px var(--shadow-color);
            font-size: 1.25rem;
            font-weight: 500;
            z-index: 1000;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            transition: all 0.3s ease;
            min-width: 200px;
            text-align: center;
        }

        .user-marker-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: red;
            border: 2px solid white;
            box-shadow: 0 0 5px var(--shadow-color);
            transition: transform 0.3s ease;
        }

        .lochunt-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ffffff;
            z-index: 2000;
            display: flex;
            flex-direction: column;
        }

        .custom-popup .leaflet-popup-content-wrapper {
            padding: 0;
            overflow: hidden;
            border-radius: 10px;
        }

        .custom-popup .leaflet-popup-content {
            margin: 0;
            width: 250px !important;
        }

        .popup-content {
            text-align: center;
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            width: 100%;
        }

.show-all-switch {
    position: absolute;
    top: 15px;
    left: 10px;
    z-index: 1000;
    background-color: white;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #005f9e;
    /* Add these properties to center the content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 50px;
    height: 30px;
    background-color: #ccc;
    border-radius: 20px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #005f9e;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.switch-label {
    margin-left: 8px;
    font-size: 14px;
    color: #333;
}
        
        .location-image {
            width: 100%;
            height: auto;
            display: block;
        }

        .location-name {
            margin: 15px 0;
            font-size: 1.2rem;
            color: var(--text-color);
            padding: 0 15px;
        }

        .popup-buttons {
            display: flex;
            margin-top: 10px;
        }

        .button {
            flex: 1;
            padding: 12px 0;
            font-size: 1rem;
            font-weight: bold;
            color: white;
            border: none;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .route-button {
            background-color: #006400;
        }

        .bypass-button {
            background-color: #dc3545;
        }
        
        .pin-head {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%) rotate(-45deg);
            width: 30px;
            height: 30px;
            border-radius: 50% 50% 50% 0;
            border: 3px solid white;
            box-shadow: 0 0 5px var(--shadow-color);
            background-color: #31bd24;
            transition: all 0.3s ease;
        }

        .pin-head:hover {
            transform: translateX(-50%) rotate(-45deg) scale(1.1);
            box-shadow: 0 0 15px var(--shadow-color);
        }

.pin-head::after {
    content: attr(data-id);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);  /* Counter the pin-head's rotation */
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

        .directions-link {
            display: inline-block;
            margin-top: 15px;
            padding: 10px 20px;
            background-color: #006400;
            color: white;
            border-radius: 25px;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .directions-link:hover {
            background-color: #037f51;
            transform: translateY(-2px);
            box-shadow: 0 6px 8px var(--shadow-color);
        }

        #startHunt {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 8px;
            background-color: var(--primary-color);
            color: white;
            font-size: 1.1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #startHunt:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px var(--shadow-color);
        }

        .lochunt-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ffffff;
            z-index: 2000;
            display: none;
            flex-direction: column;
            overflow-y: auto;
        }

        .lochunt-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .audio-player {
            width: 100%;
            max-width: 400px;
            margin: 20px auto;
        }

        .audio-progress {
            width: 100%;
            margin-bottom: 10px;
        }

        .progress {
            height: 8px;
            background-color: #d1d1d1;
            cursor: pointer;
            border-radius: 4px;
        }

        .progress-bar {
            background-color: var(--primary-color);
            border-radius: 4px;
        }

        .audio-time {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 10px;
        }

        .audio-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.5rem;
        }

        .audio-button {
            background-color: white;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            width: 55px;
            height: 55px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1111;
        }

        .audio-button:hover {
            background-color: var(--secondary-color);
            color: white;
        }

        .trivia-container {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px var(--shadow-color);
            border: 2px solid var(--primary-color);
            width: 90%;
            max-width: 600px;
            z-index: 2001;
            display: none;
            font-size: 22px;
        }

        .map-buttons {
            position: fixed;
            bottom: 30px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            padding: 0 25px;
            z-index: 1000;
        }

        .map-button {
            background-color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            border: 1px solid var(--primary-color);
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 10px var(--shadow-color);
            font-size: 2rem;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }

        .map-button:hover {
            background-color: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        .navigation-tips {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow-color);
            z-index: 2001;
            display: none;
            max-width: 90%;
            width: 400px;
        }

        .close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary-color);
            transition: color 0.3s ease;
        }

        #congratulations {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            z-index: 3000;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 30px;
            text-align: center;
        }

        #congratulations h2 {
            font-size: 32px;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        #congratulations button {
            padding: 12px 24px;
            font-size: 18px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #congratulations button:hover {
            background-color: var(--hover-color);
        }

        @media (max-width: 768px) {
            body, html {
                font-size: 18px;
            }

            #distanceBox {
                font-size: 1.3rem;
                padding: 6px 10px;
                top: 10px;
                right: 10px;
            }

            .map-buttons {
                bottom: 20px;
            }

            .map-button {
                width: 50px;
                height: 50px;
                font-size: 1.7rem;
            }

            .navigation-tips {
                max-width: 95%;
                padding: 20px;
            }

            #congratulations h2 {
                font-size: 24px;
            }

            #congratulations button {
                font-size: 16px;
                padding: 10px 20px;
            }

            .audio-player {
                max-width: 100%;
            }

            .lochunt-container img {
                height: 30vh;
            }

            .trivia-container {
                width: 95%;
                padding: 20px;
                font-size: 16px;
            }
        }
